package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 科目管理对象 fxy_financial_subject
 * 
 * @author ruoyi
 * @date 2025-01-15
 */
public class FxyFinancialSubject extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键编号 */
    private Long id;

    /** 科目类型 */
    private String type;

    /** 科目编码 */
    @Excel(name = "科目编码")
    private String code;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String name;

    /** 助记码 */
    @Excel(name = "助记码")
    private String mnemonicCode;

    /** 余额方向 */
    @Excel(name = "余额方向")
    private String balanceDirection;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 所在级别 */
    private Integer level;

    /** 是否为系统默认 */
    private Integer systemDefault;

    /** $column.columnComment */
    private Long accountSetsId;

    /** 科目余额 */
    private Long balance;

    /** 单位 */
    private String unit;

    /** 辅助核算 */
    private String auxiliaryAccounting;

    /** $column.columnComment */
    private String currencyAccounting;

    /** $column.columnComment */
    private String parentCode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMnemonicCode(String mnemonicCode) 
    {
        this.mnemonicCode = mnemonicCode;
    }

    public String getMnemonicCode() 
    {
        return mnemonicCode;
    }
    public void setBalanceDirection(String balanceDirection) 
    {
        this.balanceDirection = balanceDirection;
    }

    public String getBalanceDirection() 
    {
        return balanceDirection;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setSystemDefault(Integer systemDefault) 
    {
        this.systemDefault = systemDefault;
    }

    public Integer getSystemDefault() 
    {
        return systemDefault;
    }
    public void setAccountSetsId(Long accountSetsId) 
    {
        this.accountSetsId = accountSetsId;
    }

    public Long getAccountSetsId() 
    {
        return accountSetsId;
    }
    public void setBalance(Long balance) 
    {
        this.balance = balance;
    }

    public Long getBalance() 
    {
        return balance;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setAuxiliaryAccounting(String auxiliaryAccounting) 
    {
        this.auxiliaryAccounting = auxiliaryAccounting;
    }

    public String getAuxiliaryAccounting() 
    {
        return auxiliaryAccounting;
    }
    public void setCurrencyAccounting(String currencyAccounting) 
    {
        this.currencyAccounting = currencyAccounting;
    }

    public String getCurrencyAccounting() 
    {
        return currencyAccounting;
    }
    public void setParentCode(String parentCode) 
    {
        this.parentCode = parentCode;
    }

    public String getParentCode() 
    {
        return parentCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("code", getCode())
            .append("name", getName())
            .append("mnemonicCode", getMnemonicCode())
            .append("balanceDirection", getBalanceDirection())
            .append("status", getStatus())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .append("systemDefault", getSystemDefault())
            .append("accountSetsId", getAccountSetsId())
            .append("balance", getBalance())
            .append("unit", getUnit())
            .append("auxiliaryAccounting", getAuxiliaryAccounting())
            .append("currencyAccounting", getCurrencyAccounting())
            .append("parentCode", getParentCode())
            .toString();
    }
}
